package com.pug.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class LoginController {

    @GetMapping("/toLogin")
    public String login(){
        return "login";
    }

    /**
     * 登陆失败请求
     * @return
     */
    @GetMapping("/myerror")
    public String error(){
        return "myerror";
    }

    /**
     * 没有权限的请求
     */
    @GetMapping("/nopermission")
    public String nopermission(){
        return "nopermission";
    }


}
